Original link http://www.cnblogs.com/zhangzili/p/4975080.htmlMongoDB knowledge points at a glance1. Start the MongoDB database:Go to the MongoDB installation directory and execute the following commandC:\Program
********************************** Connect to the MongoDB database * * ************************* format ("mongodb: username: password @ address: Specifies the database by default on the port ", parameter) $ connnewMongo (); can be abbreviated as $
Common query indexes of mongoDB (III)1. _ id index is the default index created by the vast majority of sets. For each inserted data, MongoDB automatically generates a unique _ id field. > Db. jerome_2.collection.insert ({x: 2}) WriteResult
MongoDB, as the first database in NoSQL, has been using more and more people in recent years, and as a developer, it is necessary to understand the next MongoDB database. The following will give you the basic knowledge of the MongoDB database, there
MongoDB Study Notes (INDEX) Postedon I. indexing basics: MongoDB indexes are almost the same as traditional relational databases, which also include some basic optimization techniques. The following command creates an index: db. test. ensureIndex
/*** MongoDB $type operator*/
/*** The $type operator is based on the Bson type to retrieve the matching data type in the collection and returns the result.* The types of MongoDB that can be used are shown in the following table:* Type Number Notes*
0) MONGO: Connect MongoDB database via client1) Show DBS---Display the currently created database2) Use test---Create or switch databases3) Db.dropdatabase ()--Delete the current database3) Show Collections: Displays the collection created by the
Install MongoDB 3.0 server on CentOS71. Download and install
MongoDB 3.0 official version released! This marks a new development stage for MongoDB databases, providing a powerful, flexible, and easy-to-manage database management system. MongoDB
It has been nearly a year since I came into contact with mongodb, And I have accumulated a lot of experience in indexing it. On this dark night, I would like to summarize the mongodb index. I. Index description mongodb has two types of indexes:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.